package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Tolerate;

import java.util.HashMap;

@Setter
@Getter
@ToString
public class Classinfo {
    private Long id;

    private String name;

    private Integer number;

    private Employee employee ;
    //private Long employeeId;
    public String getJson(){
        HashMap map = new HashMap() ;
        map.put("id",id );
        map.put("name",name );
        map.put("number",number );
        map.put("employee",employee.getId());
        return JSON.toJSONString(map);
    }


}